From b6aac11db17b8552c38d73fad60fe32dd7d4c2d2 Mon Sep 17 00:00:00 2001 From: king6cong Date: Thu, 16 Feb 2017 15:11:51 +0800 Subject: [PATCH] remove unnecessary code --- src/cargo/ops/cargo_rustc/fingerprint.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/cargo/ops/cargo_rustc/fingerprint.rs b/src/cargo/ops/cargo_rustc/fingerprint.rs index d892a6517..6384204d3 100644 --- a/src/cargo/ops/cargo_rustc/fingerprint.rs +++ b/src/cargo/ops/cargo_rustc/fingerprint.rs @@ -511,17 +511,14 @@ fn write_fingerprint(loc: &Path, fingerprint: &Fingerprint) -> CargoResult<()> { Ok(()) } -/// Prepare work for when a package starts to build +/// Prepare for work when a package starts to build pub fn prepare_init(cx: &mut Context, unit: &Unit) -> CargoResult<()> { let new1 = cx.fingerprint_dir(unit); - let new2 = new1.clone(); if fs::metadata(&new1).is_err() { fs::create_dir(&new1)?; } - if fs::metadata(&new2).is_err() { - fs::create_dir(&new2)?; - } + Ok(()) } -- 2.30.2